package com.bao.work.jin.service;

import com.bao.work.jin.entity.Goods;

import java.io.IOException;
import java.util.Scanner;
import java.util.TreeMap;

/**
 * @author baoye
 * @date 2024-08-02/16:58
 */
public interface GoodsService {
    TreeMap<Goods,Integer> GOODS_TREE = new TreeMap<>();
    TreeMap<Goods,Integer> CART_TREE=new TreeMap<>();
    String SPLIT="-";
    String GOODS_NAME="GoodsList.txt";
    String CART_NAME="CartList.txt";
    Scanner INPUT=new Scanner(System.in);
    //添加商品
    void addGoods() throws IOException;
    //查看商品
    void selectGoods();
    //查看指定商品
    void selectGoodsById();
    //添加商品到购物车
    void insertGoodsToCart() throws IOException;
    //显示购物车
    void selectCart();
}
